<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//--------------数组--------------------------------------------
			let arr = [1, 2, 3];
			for (let i = 0; i < arr.length; i++) {
				// console.log(arr[i]);
			}

			// arr.forEach(val => console.log(val));

			//--------------对象--------------------------------------------
			let stu = {
				name: "张三",
				age: 20
			}

			for (let var1 in stu) {
				// console.log(var1 + ":" + stu[var1]);
				// console.log(`${var1}:${stu[var1]}`);
			}

			//--------------Set----Map----------------------------------------
			let st = new Set(arr);
			for (let s of st) {
				console.log(s);
			}
		</script>
	</body>
</html>
